import axios from 'axios';
export const baseURL = process.env.NODE_ENV === 'index' ? '/' : '/api';
// export const baseURL = '/';
export const http = axios.create({
    baseURL: baseURL,
    timeout: 10000,
    withCredentials: true,
});
export default http;